package main

func main() {
	println(maxCount(40000, 40000, [][]int{}))
}
func maxCount(m int, n int, ops [][]int) int {
	if len(ops) == 0 {
		return m * n
	}
	row := ops[0][0]
	col := ops[0][1]

	for _, arr := range ops {
		i := arr[0]
		j := arr[1]
		row = min(i, row)
		col = min(j, col)
	}
	return row * col
}
func min(a, b int) int {
	if a < b {
		return a
	}
	return b
}
